package cn.znzz.cjm.org.domain;

import cn.znzz.cjm.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门实体列  Data   lombok注解 自动添加getter  setter toString
 */
@Data
public class Department extends BaseDomain{
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private cn.znzz.cjm.org.domain.Employee manager;
    private Long parent_id;
    private Department parent;
    //当前部门的子部门
    private List<Department> children = new ArrayList<>();

}
